<?php

//
// +------------------------------------------------------------------------+
// | PHP Version 5.4                                                        |
// +------------------------------------------------------------------------+
// | Copyright (c) All rights reserved.                                     |
// +------------------------------------------------------------------------+
// | 世纪车来车往(北京）网络科技有限公司 版权所有！                                 |
// | TEL:010-63732365  HOTLINE:400-6688-365  EMAIL:clcw@clcw.com.cn         |
// | $Revision: 1.0 $                                                       |
// +------------------------------------------------------------------------+
// | Author: xiangminghu@clcw.com.cn                                        |
// +------------------------------------------------------------------------+
//
namespace AuctionCore\AntTrade;

class AntTradeRefundLog
{
    private $antTradeRefundLogModel;

    public function __construct()
    {
        $this->antTradeRefundLogModel = M('AntTradeRefundLog', 'au_', 'DB_CLCW');
    }

    /**
     * 添加退款记录
     *
     * @param array $data
     *
     * @return bool|mixed
     */
    public function addAntTradeRefundLog($data = [])
    {
        if (empty($data)) {
            return false;
        }
        $data['create_time'] = time();
        return $this->antTradeRefundLogModel->add($data);
    }
}